<?php

$router = new Phalcon\Mvc\Router();

$router->setDefaultModule("frontend");
/*
  $router->setDefaultNamespace("Modules\Modules\Frontend\Controllers");

  $router->setUriSource(\Phalcon\Mvc\Router::URI_SOURCE_SERVER_REQUEST_URI);

  $router->removeExtraSlashes(TRUE); */

$router->add('/:controller/:action', array(
    'module' => 'frontend',
    'controller' => 1,
    'action' => 2,
));


include APP_DIR . '/modules/user/config/routes.php';

include APP_DIR . '/modules/admin/config/routes.php';

include APP_DIR . '/modules/api/config/routes.php';

return $router;
